-- GENERATED SPELL FOR [Saurfang the Younger] --


function spell0_18229(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41098,pUnit)
pUnit:RegisterEvent('Sorts_18229', 611, 1)
end

function Sorts_18229(pUnit, Event)
local choix_sorts_18229 = math.random(0, 0)
if choix_sorts_18229 == 0 then
pUnit:RegisterEvent('spell0_18229', 1, 1)
end
end

function mob18229_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18229', math.random(1500, 3000), 1)
end

function mob18229_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18229_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18229_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18229, 1, 'mob18229_Action')
RegisterUnitEvent(18229, 2, 'mob18229_Leave')
RegisterUnitEvent(18229, 3, 'mob18229_Kill')
RegisterUnitEvent(18229, 4, 'mob18229_Die')
